package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee employee,Long[] ids);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee employee,Long[] ids);

    PageInfo<Employee> query(QueryObject qo);

    public Employee login(String name, String password);

    void judge(String oldPassword, String newPassword,Long id);

    Employee selectByName(String name);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;
    //根据角色编码查询员工
    List<Employee> selectByRoleSn(String... sns);
}
